package com.apigateway.stateCount;

import com.apigateway.mapper.ApiServiceCallMapper;
import com.apigateway.model.ApiServiceCall;

/**
 * Created by 小泽玛丽罗 on 2017/3/12.
 */
public class StateCountRunnable implements Runnable {

    private ApiServiceCallMapper apiServiceCallMapper;
    private ApiServiceCall apiServiceCall;
    public StateCountRunnable(ApiServiceCall apiServiceCall, ApiServiceCallMapper apiServiceCallMapper) {
        this.apiServiceCall=apiServiceCall;
        this.apiServiceCallMapper = apiServiceCallMapper;
    }

    @Override
    public void run() {
        apiServiceCallMapper.add(apiServiceCall);
    }
}
